import request from '@/utils/request'

// 查询职业教育学习档案列表
export function listEducation(query) {
  return request({
    url: '/system/education/list',
    method: 'get',
    params: query
  })
}

// 查询职业教育学习档案详细
export function getEducation(studyRecordId) {
  return request({
    url: '/system/education/' + studyRecordId,
    method: 'get'
  })
}

// 新增职业教育学习档案
export function addEducation(data) {
  return request({
    url: '/system/education',
    method: 'post',
    data: data
  })
}

// 修改职业教育学习档案
export function updateEducation(data) {
  return request({
    url: '/system/education',
    method: 'put',
    data: data
  })
}

// 删除职业教育学习档案
export function delEducation(studyRecordId) {
  return request({
    url: '/system/education/' + studyRecordId,
    method: 'delete'
  })
}
